﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Logistics.Web
{
    public partial class Edityo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Model.TruckTeam t=  BLL.TruckTeamBLL.Eshow(Request.QueryString["id"]);
                txtTeamName.Value = t.TeamName;
                txtLeader.Value = t.Leader;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (BLL.TruckTeamBLL.updatetruckteam(txtTeamName.Value, txtLeader.Value, Request.QueryString["id"]) > 0)
            {
                Response.Redirect("~/yo.aspx");
            }
        }
    }
}